<?php /* Smarty version 2.6.18, created on 2009-10-22 04:20:05
         compiled from stafflistsub.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'stafflistsub.tpl', 21, false),)), $this); ?>
<div>
	<table border="0" width="100%">
	<tr><td colspan="9"><hr></td></tr>
	<tr>
	<?php if ($this->_tpl_vars['staffs'][0]['name'] <> ''): ?>
		<td align="center" style="padding-left: 5pt; padding-right: 5pt">Edit</td>
	<?php endif; ?>
		<td align="right">Photo</td>
		<td align="right">Staff No.</td>
		<td>Staff Name</td>
		<td>Job Description</td>
		<td align="right">Date Hired</td>
		<td align="right">Date Resigned</td>
		<td>Remarks</td>
		<?php if ($this->_tpl_vars['staffs'][0]['name'] <> ''): ?>
			<td align="center" style="padding-left: 5pt; padding-right: 5pt">Other Info</td>
		<?php endif; ?>
	</tr>
	<tr><td colspan="9"><hr></td></tr>
	<?php $_from = $this->_tpl_vars['staffs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['staff']):
?>
	<tr class="<?php echo smarty_function_cycle(array('values' => 'blue,notify'), $this);?>
">
		<?php if ($this->_tpl_vars['staff']['name'] <> ''): ?>
			<td align="center">
			<a href="javascript:void(0);" onclick="editStaff(<?php echo $this->_tpl_vars['staff']['staff_id']; ?>
);">Edit</a>
		</td>
		<?php endif; ?>
		<td><img src="<?php echo $this->_tpl_vars['staff']['link']; ?>
" /></td>
		<td align="right"><?php echo $this->_tpl_vars['staff']['identification_no']; ?>
</td>
		<td><?php echo $this->_tpl_vars['staff']['name']; ?>
</td>
		<td><?php echo $this->_tpl_vars['staff']['position']; ?>
</td>
		<td align="right"><?php echo $this->_tpl_vars['staff']['date_hired']; ?>
</td>
		<td align="right"><?php echo $this->_tpl_vars['staff']['date_resigned']; ?>
</td>
		<td><?php echo $this->_tpl_vars['staff']['remarks']; ?>
</td>
		<?php if ($this->_tpl_vars['staff']['name'] <> ''): ?>
			<td align="center" nowrap>
				<a href="javascript:void(0);" onclick="editAddress('<?php echo $this->_tpl_vars['staff']['address_id_value']; ?>
');">Address</a>&nbsp;&nbsp;
				<a href="javascript:void(0);" onclick="editContact('<?php echo $this->_tpl_vars['staff']['contact_id_value']; ?>
');">Contact</a>&nbsp;&nbsp;
				<!-- <a href="javascript:void(0);" onclick="openWindow('/account/getStaffTraining/staffId/<?php echo $this->_tpl_vars['staff']['staff_id']; ?>
','StaffAddress',500,300,'scrollbars=yes');">Trainings</a>										 -->
			</td>
		<?php endif; ?>
	</tr>
	<?php endforeach; endif; unset($_from); ?>
	</table>
</div>